﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace HelloMinasan.Web.Song.ViewModels
{
    public class ModelForList<T>
    {
        public IEnumerable<T> ListItem { get; set; }
        public int TotalSong { get; set; }
        public int TotalPageCount
        {
            get
            {
                int pageCount = TotalSong / 15;
                if (pageCount * 15 < TotalSong) pageCount++;
                return pageCount;
            }
        }
        public PagingHelper PagingControl { get; set; }
    }
}